package itu.twitterandro.application;

import java.util.List;

public class StringUtils {
    /**
     *
     * @param list The List to be represented as a String
     * @param header The String prepended to the String representation
     * @param separator The String separating each List element
     * @param footer The String appended to the String representation
     *
     * @return The String representation of the List
     */
    public static String listToString(List<?extends Object> list) {
        
        StringBuilder sb = new StringBuilder();

        for (int i = 0; i < list.size(); i++) {
            sb.append(list.get(i));
        }

        return sb.toString();
    }
}